#include "Comm.hpp"

int main()
{
    int fd = open(pathName, O_WRONLY);
    if(fd < 0)
    {
        std::cout << "client open error\n";
    }
    std::string message;
    while(std::getline(std::cin, message))
    {
        ssize_t n = write(fd, message.c_str(), message.size());
        if(n < 0)
        {
            std::cout << "write error\n" << std::endl;
        }
    }
    return 0;
}